module dogre.plane;

extern(C)
{
    void *getPlane(float, float, float, float);
}

import dogre.vector3;
import dogre.internals.utils;

class Plane
{
    mixin(Wrapper);
    
    this(float a, float b, float c, float d)
    {
        p = getPlane(a, b, c, -d);
    }
    
    this(Vector3 rkNormal, float fConstant)
    {
        p = getPlane(rkNormal.x, rkNormal.y, rkNormal.z, fConstant);
    }
}